/*
 * @Author: liuqiang
 * @Date: 2022-04-07 15:03:56
 * @LastEditors: liuqiang
 */
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/Amapgis',
    component: () => import('../views/Amapgis/map/map.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home/home.vue')
  },
  {
    path: '/Amapgis',
    name: 'Amapgis',
    component: () => import('../views/Amapgis/map/map.vue')
  },
  {
    path: '/firstMap',
    name: 'firstMap',
    component: () => import('../views/firstMap/firstMap.vue')
  },
  {
    path: '/popup',
    name: 'popup',
    component: () => import('../views/popup/popup.vue')
  },
  {
    path: '/marker',
    name: 'marker',
    component: () => import('../views/marker/marker.vue')
  },
  {
    path: '/zoom',
    name: 'zoom',
    component: () => import('../views/zoom/zoom.vue')
  },
  {
    path: '/tabIndex',
    name: 'tabIndex',
    component: () => import('../views/tabIndex/tabIndex.vue')
  },
  {
    path: '/tabContainer',
    name: 'tabContainer',
    component: () => import('../views/tabContainer/tabContainer.vue')
  },
  {
    path: '/SynMaps',
    name: 'SynMaps',
    component: () => import('../views/SynMaps/SynMaps.vue')
  },
  {
    path: '/preload',
    name: 'preload',
    component: () => import('../views/preload/preload.vue')
  },
  {
    path: '/vectorgraphJson',
    name: 'vectorgraphJson',
    component: () => import('../views/vectorgraphJson/vectorgraphJson.vue')
  },
  {
    path: '/vectorHigh',
    name: 'vectorHigh',
    component: () => import('../views/vectorHigh/vectorHigh.vue')
  },
  {
    path: '/rotationMap',
    name: 'rotationMap',
    component: () => import('../views/rotationMap/rotationMap.vue')
  },
  {
    path: '/mouseZoom',
    name: 'mouseZoom',
    component: () => import('../views/mouseZoom/mouseZoom.vue')
  },
  {
    path: '/animate',
    name: 'animate',
    component: () => import('../views/animate/animate.vue')
  },
  {
    path: '/graticule',
    name: 'graticule',
    component: () => import('../views/graticule/graticule.vue')
  },
  {
    path: '/Heatmap',
    name: 'Heatmap',
    component: () => import('../views/Heatmap/Heatmap.vue')
  },
  {
    path: '/ScaleLine',
    name: 'ScaleLine',
    component: () => import('../views/ScaleLine/ScaleLine.vue')
  },
  {
    path: '/FullScreen',
    name: 'FullScreen',
    component: () => import('../views/FullScreen/FullScreen.vue')
  },
  {
    path: '/ZoomToExtent',
    name: 'ZoomToExtent',
    component: () => import('../views/ZoomToExtent/ZoomToExtent.vue')
  },
  {
    path: '/OverviewMap',
    name: 'OverviewMap',
    component: () => import('../views/OverviewMap/OverviewMap.vue')
  },
  {
    path: '/MousePosition',
    name: 'MousePosition',
    component: () => import('../views/MousePosition/MousePosition.vue')
  },
  {
    path: '/ZoomSlider',
    name: 'ZoomSlider',
    component: () => import('../views/ZoomSlider/ZoomSlider.vue')
  },
  {
    path: '/Group',
    name: 'Group',
    component: () => import('../views/Group/Group.vue')
  },
  {
    path: '/setZIndex',
    name: 'setZIndex',
    component: () => import('../views/setZIndex/setZIndex.vue')
  },
  {
    path: '/limitResolution',
    name: 'limitResolution',
    component: () => import('../views/limitResolution/limitResolution.vue')
  },
  {
    path: '/setExtent',
    name: 'setExtent',
    component: () => import('../views/setExtent/setExtent.vue')
  },
  {
    path: '/layerCover',
    name: 'layerCover',
    component: () => import('../views/layerCover/layerCover.vue')
  },
  {
    path: '/setSource',
    name: 'setSource',
    component: () => import('../views/setSource/setSource.vue')
  },
  {
    path: '/easyMark',
    name: 'easyMark',
    component: () => import('../views/easyMark/easyMark.vue')
  },
  {
    path: '/markColor',
    name: 'markColor',
    component: () => import('../views/markColor/markColor.vue')
  },
  {
    path: '/aggregatedData',
    name: 'aggregatedData',
    component: () => import('../views/aggregatedData/aggregatedData.vue')
  },
  {
    path: '/basicDraw',
    name: 'basicDraw',
    component: () => import('../views/basicDraw/basicDraw.vue')
  },
  {
    path: '/drawGraph',
    name: 'drawGraph',
    component: () => import('../views/drawGraph/drawGraph.vue')
  },
  {
    path: '/freeDrawing',
    name: 'freeDrawing',
    component: () => import('../views/freeDrawing/freeDrawing.vue')
  },
  {
    path: '/arrowLine',
    name: 'arrowLine',
    component: () => import('../views/arrowLine/arrowLine.vue')
  },
  {
    path: '/snapGraph',
    name: 'snapGraph',
    component: () => import('../views/snapGraph/snapGraph.vue')
  }

]

const router = createRouter({
  history: createWebHistory('/openlayers'),
  routes

})

export default router
